﻿import 'package:star_author/generated/json/base/json_convert_content.dart';
import 'package:star_author/model/wallet_particular_list_item_entity.dart';

WalletParticularListItemEntity $WalletParticularListItemEntityFromJson(Map<String, dynamic> json) {
	final WalletParticularListItemEntity walletParticularListItemEntity = WalletParticularListItemEntity();
	final double? id = jsonConvert.convert<double>(json['id']);
	if (id != null) {
		walletParticularListItemEntity.id = id;
	}
	final String? detailableType = jsonConvert.convert<String>(json['detailable_type']);
	if (detailableType != null) {
		walletParticularListItemEntity.detailableType = detailableType;
	}
	final double? detailableId = jsonConvert.convert<double>(json['detailable_id']);
	if (detailableId != null) {
		walletParticularListItemEntity.detailableId = detailableId;
	}
	final String? createdAt = jsonConvert.convert<String>(json['created_at']);
	if (createdAt != null) {
		walletParticularListItemEntity.createdAt = createdAt;
	}
	final String? price = jsonConvert.convert<String>(json['price']);
	if (price != null) {
		walletParticularListItemEntity.price = price;
	}
	final bool? isKlone = jsonConvert.convert<bool>(json['is_klone']);
	if (isKlone != null) {
		walletParticularListItemEntity.isKlone = isKlone;
	}
	final String? process = jsonConvert.convert<String>(json['process']);
	if (process != null) {
		walletParticularListItemEntity.process = process;
	}
	return walletParticularListItemEntity;
}

Map<String, dynamic> $WalletParticularListItemEntityToJson(WalletParticularListItemEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['detailable_type'] = entity.detailableType;
	data['detailable_id'] = entity.detailableId;
	data['created_at'] = entity.createdAt;
	data['price'] = entity.price;
	data['is_klone'] = entity.isKlone;
	data['process'] = entity.process;
	return data;
}